import service from "../../request.js";

//获取理事会成员
export function getAssociationCouncil(query) {
    return service({
        method: "get",
        url: '/associationCouncils/page',
        params: query
    })
}


//添加理事会成员
export function addAssociationCouncil(formData) {
    return service({
        method: "post",
        url: '/associationCouncils',
        data: formData
    })
}
//编辑理事会成员
export function updateAssociationCouncil(formData) {
    return service({
        method: "put",
        url: '/associationCouncils/'+formData.id,
        data: formData
    })
}
//定义删除方法
export function deleteAssociationCouncil(id) {
    return service({
        method: "delete",
        url: '/associationCouncils/'+id
    })
}
